package com.itheima.interface_case.students_manager;

public class Student {
    private String name;
    private String sex;
    private int score;

    static int manCount = 0;
    static int womanCount = 0;

    public Student() {
    }

    public Student(String name, String sex, int score) {
        this.name = name;
        this.sex = sex;
        this.score = score;
        if (sex == "男") {
            manCount++;
        }
        if (sex == "女") {
            womanCount++;
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
